Makes the semantics clearer.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4176>
/* We started more work since we scheduled the idle */
if (global->work_count > 0)
- return FALSE;
+ return G_SOURCE_REMOVE;
/* No leisure closures, so we are done */
if (global->leisure_closures == NULL)
- return FALSE;
+ return G_SOURCE_REMOVE;
closures = global->leisure_closures;
global->leisure_closures = NULL;
g_slist_free (closures);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void
shell_perf_log_collect_statistics (perf_log);
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
/**